package com.bong.ring.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.bong.ring.R;

public class DeviceConfirmActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        int type = getIntent().getIntExtra("type", 0);
        if (type == 0) {
            setContentView(R.layout.activity_device_confirm);
            setTitle("绑定bong4");
        } else {
            setContentView(R.layout.activity_device_ok);
            setTitle("绑定bong4");
        }
    }

    public void deviceNoClick(View view) {
        finish();
    }

    public void deviceYesClick(View view) {
        finish();
        Intent intent = new Intent(this, DeviceConfirmActivity.class);
        intent.putExtra("type", 1);
        startActivity(intent);
    }

    public void bondFinishedClick(View view) {
        finish();
    }
}
